from stock.models import *
from django.contrib import admin

class StockPriceAdmin(admin.ModelAdmin):
    # Set Admin Function
    list_display = ('Name', 'Date','Open','Close','Change','PChange','High','Low','Vol','Val')
    list_filter = ['Date']
    search_fields = ['Name']
    date_hierarchy = 'Date'
    
admin.site.register(StockPrice,StockPriceAdmin)